package a.f.d.a;

import a.c.e;
import a.c.k;
import a.d.s;
import a.d.u;
import a.f.o;

public class yc
  implements v
{
  private double a = 30.0D;
  private double b = 15.0D;
  private double c = 10.0D;
  private double d = 15.0D;
  public static boolean e;
  
  public double a(o paramo, vb paramvb, bc parambc, e parame1, e parame2)
  {
    boolean bool2 = d.R;
    boolean bool1 = d.Q;
    if ((bool2) || ((parame1 == null) || (parame2 == null))) {
      return 0.0D;
    }
    ec localec1 = parambc.a(parame1);
    ec localec2 = parambc.a(parame2);
    int i = localec1.d();
    int j = localec2.d();
    double d1 = 0.0D;
    a.c.d locald1 = null;
    if (!bool2)
    {
      z localz;
      switch (i)
      {
      case 0: 
      case 5: 
      case 14: 
      default: 
        k = 0;
        if (!bool2) {
          if (!bool1) {
            break label453;
          }
        }
      case 12: 
        k = 4;
        if (!bool2) {
          if (!bool1) {
            break label453;
          }
        }
      case 13: 
        k = 5;
        if (!bool2) {
          if (!bool1) {
            break label453;
          }
        }
      case 15: 
        k = 6;
        if (!bool1) {
          break label453;
        }
      case 2: 
        locald1 = localec1.g();
        if (localec1.f() == parame2)
        {
          localz = parambc.a(locald1).m();
          if (localz != null)
          {
            if (!bool2) {}
            if (!bool2)
            {
              if ((parame1.d() == 0 ^ parambc.a(locald1).k())) {
                d1 = localz.a();
              }
            }
            else
            {
              if (bool2) {
                break label310;
              }
              if (!bool1) {
                break label309;
              }
            }
            d1 = localz.b();
          }
        }
        k = 1;
        break;
      case 3: 
        locald1 = localec1.g();
        localz = parambc.a(locald1).m();
        if (localz != null)
        {
          if (bool2) {
            break label424;
          }
          if (localec1.f() == parame2)
          {
            if (!bool2)
            {
              if ((locald1.e() == parame2 ^ parambc.a(locald1).k()))
              {
                if (bool2) {
                  break label420;
                }
                d1 = localz.a();
              }
            }
            else {
              if (!bool1) {
                break label422;
              }
            }
            d1 = localz.b();
          }
        }
      case 1: 
      case 8: 
      case 9: 
      case 10: 
        locald1 = localec1.g();
      case 6: 
      case 7: 
        k = 1;
        break;
      case 4: 
        label309:
        label310:
        k = 2;
        label420:
        label422:
        label424:
        if ((!bool2) && (!bool1)) {
          break label453;
        }
      }
    }
    int k = 3;
    label453:
    a.c.d locald2 = null;
    Object localObject1;
    if (!bool2) {
      switch (j)
      {
      case 0: 
      case 5: 
      case 14: 
      default: 
        m = 0;
        if (!bool2) {
          if (!bool1) {
            break label837;
          }
        }
      case 13: 
        m = 4;
        if (!bool2) {
          if (!bool1) {
            break label837;
          }
        }
      case 12: 
        m = 5;
        if (!bool2) {
          if (!bool1) {
            break label837;
          }
        }
      case 15: 
        m = 6;
        if (!bool1) {
          break label837;
        }
      case 2: 
        locald2 = localec2.g();
        if (localec2.f() == parame1)
        {
          localObject1 = parambc.a(locald2).m();
          if (localObject1 != null)
          {
            if (!bool2) {}
            if (!bool2)
            {
              if ((parame2.d() == 0 ^ parambc.a(locald2).k())) {
                d1 = ((z)localObject1).a();
              }
            }
            else
            {
              if (bool2) {
                break label694;
              }
              if (!bool1) {
                break label693;
              }
            }
            d1 = ((z)localObject1).b();
          }
        }
        m = 1;
        break;
      case 3: 
        locald2 = localec2.g();
        localObject1 = parambc.a(locald2).m();
        if (localObject1 != null)
        {
          if (bool2) {
            break label808;
          }
          if (localec2.f() == parame1)
          {
            if (!bool2)
            {
              if ((locald2.e() == parame1 ^ parambc.a(locald2).k()))
              {
                if (bool2) {
                  break label804;
                }
                d1 = ((z)localObject1).a();
              }
            }
            else {
              if (!bool1) {
                break label806;
              }
            }
            d1 = ((z)localObject1).b();
          }
        }
      case 1: 
      case 8: 
      case 9: 
      case 10: 
        locald2 = localec2.g();
      case 6: 
      case 7: 
        m = 1;
        break;
      case 4: 
        label693:
        label694:
        m = 2;
        label804:
        label806:
        label808:
        if ((!bool2) && (!bool1)) {
          break label837;
        }
      }
    }
    int m = 3;
    label837:
    Object localObject2;
    Object localObject4;
    if (!bool2) {
      if (k == 4)
      {
        if (bool2) {
          break label995;
        }
        if (m == 4)
        {
          localObject1 = paramo.c(i.e);
          localObject2 = paramo.c(i.d);
          localObject3 = null;
          if ((bool2) || (localObject1 != null)) {
            localObject3 = (s)((k)localObject1).get(localec1.a());
          }
          localObject4 = null;
          if ((bool2) || (localObject2 != null)) {
            localObject4 = u.a(((k)localObject2).get(localec1.a()));
          }
          return Math.max((bool2) || (localObject3 != null) ? ((s)localObject3).a : 0.0D, (bool2) || (localObject4 != null) ? ((u)localObject4).c + ((u)localObject4).e : this.a);
        }
      }
    }
    label995:
    if ((bool2) || (k != 4))
    {
      if (bool2) {
        break label1123;
      }
      if (m != 4) {}
    }
    else
    {
      localObject1 = paramo.c(i.d);
      if (localObject1 != null)
      {
        if (!bool2) {
          if (k == 4)
          {
            localObject2 = u.a(((k)localObject1).get(localec1.a()));
            if ((bool2) || (localObject2 != null)) {
              return ((u)localObject2).c;
            }
          }
        }
        if (bool2) {
          break label1123;
        }
        if (m == 4)
        {
          localObject2 = u.a(((k)localObject1).get(localec2.a()));
          if ((bool2) || (localObject2 != null)) {
            return ((u)localObject2).e;
          }
        }
      }
    }
    label1123:
    if (!bool2) {
      if (k != 5)
      {
        if (bool2) {
          break label1312;
        }
        if (m != 5) {
          break label1303;
        }
      }
    }
    if (k == 5)
    {
      if (bool2) {
        break label1196;
      }
      localObject3 = parambc.a(localec1.a()).m();
      if (!bool1) {
        break label1198;
      }
    }
    label1196:
    Object localObject3 = parambc.a(localec2.a()).m();
    label1198:
    double d2 = (bool2) || (localObject3 != null) ? ((fc)localObject3).d() : 0.0D;
    if ((bool2) || (m != 1))
    {
      if (bool2) {
        break label1254;
      }
      if (k != 1) {}
    }
    else
    {
      return Math.max(this.b, d2);
    }
    label1254:
    if (((!bool2) && ((m != 2) && (bool2))) || ((m != 1) && ((bool2) || (m != 0))))
    {
      if (bool2) {
        break label1305;
      }
      if (k != 0) {}
    }
    else
    {
      return Math.max(this.a, d2);
    }
    label1303:
    label1305:
    if (!bool2) {
      if (k != 6)
      {
        label1312:
        if (bool2) {
          break label1356;
        }
        if (m != 6) {
          break label1352;
        }
      }
    }
    if ((bool2) || ((k == 0) || (m == 0))) {
      return this.b;
    }
    return this.c;
    label1352:
    label1356:
    if (!bool2) {
      if (k == m)
      {
        switch (k)
        {
        case 0: 
        default: 
          return this.a;
        case 1: 
          d2 = this.c;
          if (!bool2) {
            if (locald1 != null)
            {
              localObject3 = parambc.a(locald1);
              if ((bool2) || (localObject3 != null))
              {
                localObject4 = ((y)localObject3).m();
                if (localObject4 != null) {
                  d2 = Math.max(d2, ((z)localObject4).d());
                }
              }
            }
          }
          if (locald2 != null)
          {
            localObject3 = parambc.a(locald2);
            if ((bool2) || (localObject3 != null))
            {
              localObject4 = ((y)localObject3).m();
              if (localObject4 != null) {
                d2 = Math.max(d2, ((z)localObject4).d());
              }
            }
          }
          return Math.max(d1, d2);
        }
        return 0.0D;
      }
    }
    if (!bool2) {
      if (k == 3)
      {
        if (bool2) {
          break label1554;
        }
        if (m == 3) {
          return this.d;
        }
      }
    }
    label1554:
    if ((bool2) || ((k == 2) || (m == 2))) {
      return 0.0D;
    }
    d2 = this.b;
    if (!bool2) {
      if (locald1 != null)
      {
        localObject3 = parambc.a(locald1);
        if ((bool2) || (localObject3 != null))
        {
          localObject4 = ((y)localObject3).m();
          if (localObject4 != null) {
            d2 = Math.max(d2, ((z)localObject4).d());
          }
        }
      }
    }
    if (locald2 != null)
    {
      localObject3 = parambc.a(locald2);
      if ((bool2) || (localObject3 != null))
      {
        localObject4 = ((y)localObject3).m();
        if (localObject4 != null) {
          d2 = Math.max(d2, ((z)localObject4).d());
        }
      }
    }
    return Math.max(d1, d2);
  }
  
  public double a()
  {
    return this.a;
  }
  
  public void a(double paramDouble)
  {
    this.a = paramDouble;
  }
  
  public double b()
  {
    return this.b;
  }
  
  public void b(double paramDouble)
  {
    this.b = paramDouble;
  }
  
  public double c()
  {
    return this.c;
  }
  
  public void c(double paramDouble)
  {
    this.c = paramDouble;
  }
  
  public void b(o paramo, ac paramac, bc parambc) {}
  
  public void a(o paramo, ac paramac, bc parambc) {}
  
  public double d()
  {
    return this.d;
  }
  
  public void d(double paramDouble)
  {
    this.d = paramDouble;
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.d.a.yc

 * JD-Core Version:    0.7.0.1

 */